package com.ymx.darling.datasource.routing;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.core.Ordered;

@ConfigurationProperties(prefix = Config.PREFIX + ".aop")
public class RoutingDataSourceAopProperties {

    /**
     * 是否开启aop
     */
    private Boolean enabled = true;

    /**
     * aop order
     */
    private int order = Ordered.HIGHEST_PRECEDENCE;

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public Boolean isEnabled() {
        return enabled;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }
}